﻿using Configs;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Main : MonoBehaviour {

    // Use this for initialization
    void Start () {

        // 加载UI
        UIManager.GetInstance().Start();
        UIManager.GetInstance().GetUI<StartUI>().Show();

        DataReloadManager.ReloadAll();

        // 初始化场景
        //StageManager.GetInstance().Start();
    }

	// Update is called once per frame
	void Update () {

        float deltaTime = Time.deltaTime;

        StageManager.GetInstance().Update(deltaTime);
        UIManager.GetInstance().Update(deltaTime);
    }


}
